home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Space & Astronomy
/
Space and Astronomy (October 1993).iso
/
mac
/
VIEWERS
/
MSDOS
/
GIFLIB12.ZIP
/
TEST-UNX
< prev
next >
Wrap
Text File
|
1991-08-06
|
2KB
|
72 lines
#! /bin/csh -f
#
# Tests for the gif_lib utilities.
# Usage:
# test-unx [GIF_DIR] [display_prgm]
#
# This test assumes the gif_lib utilities are available from one of the
# path directorys, and that GIF_DIR is set (directly or through command line)
# to the directory holf these gif files:
# 1. solid2.gif
# 2. cheryl.gif
# 3. porsche.gif
# In addition, set GIF_DISPLAY ( directly or through command line) to the
# program to display gif files in our system.
#
# Gershon Elber, Feb 90.
#
set GIF_DIR = ./pic
if ($1 != "") set GIF_DIR = $1
set GIF_DISPLAY = gif2iris
if ($2 != "") set GIF_DISPLAY = $2
gifbg -d tl -s 320 200 -c 255 255 255 -l 64 > bg1.gif
gifcomb $GIF_DIR/porsche.gif bg1.gif | $GIF_DISPLAY
rm -f bg1.gif
text2gif -f 1 -s 7 -c 0 255 0 -t "Created using the IRIT solid modeler, Gershon Elber 1990" > credit.gif
gifasm $GIF_DIR/solid2.gif credit.gif | $GIF_DISPLAY
rm -f credit.gif
gifhisto -t $GIF_DIR/cheryl.gif | sort -r | more
gifhisto -b -s 200 512 $GIF_DIR/cheryl.gif | gifflip -l | $GIF_DISPLAY
gifflip -r $GIF_DIR/solid2.gif | gifrsize | $GIF_DISPLAY
gifinter $GIF_DIR/cheryl.gif | gifflip -x | $GIF_DISPLAY
gifbg -d "TL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 0 0 > b1.gif
gifbg -d "BL" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 0 175 > b2.gif
gifbg -d "TR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320 0 > b3.gif
gifbg -d "BR" -s 320 175 -c 255 255 255 -l 64 | gifpos -s 640 350 -i 320 175 > b4.gif
gifasm b1.gif b2.gif b3.gif b4.gif > backgrnd.gif
$GIF_DISPLAY backgrnd.gif
rm -f b?.gif backgrnd.gif
cp $GIF_DIR/solid2.gif s1.gif
gifrsize s1.gif > s2.gif
gifrsize s2.gif > s3.gif
gifrsize s3.gif > s4.gif
gifpos -i 320 0 s2.gif | gifinto s2.gif
gifpos -i 480 0 s3.gif | gifinto s3.gif
gifpos -i 560 0 s4.gif | gifinto s4.gif
gifasm s1.gif s2.gif s3.gif s4.gif > sall.gif
giftext sall.gif
$GIF_DISPLAY sall.gif
gifrsize -s 0.45 sall.gif | $GIF_DISPLAY
rm -f s?.gif sall.gif
gifpos -s 720 348 -i 400 148 $GIF_DIR/porsche.gif | $GIF_DISPLAY
gifrsize -S 800 600 $GIF_DIR/solid2.gif | $GIF_DISPLAY
gifinter $GIF_DIR/cheryl.gif | gifrsize | $GIF_DISPLAY
gifinter $GIF_DIR/cheryl.gif | gifclip -i 222 0 390 134 | gifpos -s 169 135 | gifrsize -s 2.0 | $GIF_DISPLAY
gifrotat -a 45 $GIF_DIR/cheryl.gif | $GIF_DISPLAY
Exit: